package org.dromara.config.service;

import org.dromara.config.domain.KyWarehouses;
import org.dromara.config.domain.vo.KyWarehousesVo;
import org.dromara.config.domain.bo.KyWarehousesBo;
import org.dromara.common.mybatis.core.page.TableDataInfo;
import org.dromara.common.mybatis.core.page.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * warehouseService接口
 *
 * @author kuyu
 * @date 2023-12-29
 */
public interface IKyWarehousesService {

    /**
     * 查询warehouse
     */
    KyWarehousesVo queryById(Long id);

    /**
     * 查询warehouse列表
     */
    TableDataInfo<KyWarehousesVo> queryPageList(KyWarehousesBo bo, PageQuery pageQuery);

    /**
     * 查询warehouse列表
     */
    List<KyWarehousesVo> queryList(KyWarehousesBo bo);

    /**
     * 新增warehouse
     */
    Boolean insertByBo(KyWarehousesBo bo);

    /**
     * 修改warehouse
     */
    Boolean updateByBo(KyWarehousesBo bo);

    /**
     * 校验并批量删除warehouse信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
